package com.tiamo.traders.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class Business extends com.tiamo.traders.entity.BusinessType implements Serializable {

    private int id;
    private String img;
    private double price;
    private double markPrice;
    private String title;
    private String introduce;
    private String content;
    private String type;
    private String cent;
    private String businessimg;
    private byte show;

    public String getBusinessimg() {
        return businessimg;
    }

    public void setBusinessimg(String businessimg) {
        this.businessimg = businessimg;
    }

    public byte getShow() {
        return show;
    }

    public void setShow(byte show) {
        this.show = show;
    }

    public Business(int id, String businessType, int id1, String img, double price, double markPrice, String title, String introduce, String content, String type, String cent, String businessimg, byte show) {
        super(id, businessType);
        this.id = id1;
        this.img = img;
        this.price = price;
        this.markPrice = markPrice;
        this.title = title;
        this.introduce = introduce;
        this.content = content;
        this.type = type;
        this.cent = cent;
        this.businessimg = businessimg;
        this.show = show;
    }

    public String getCent() {
        return cent;
    }

    public void setCent(String cent) {
        this.cent = cent;
    }

    public Business(int id, String businessType, int id1, String img, double price, double markPrice, String title, String introduce, String content, String type, String cent) {
        super(id, businessType);
        this.id = id1;
        this.img = img;
        this.price = price;
        this.markPrice = markPrice;
        this.title = title;
        this.introduce = introduce;
        this.content = content;
        this.type = type;
        this.cent = cent;
    }

    public Business(int id, String img, double price, double markPrice, String title, String introduce, String content, String type, String cent) {
        this.id = id;
        this.img = img;
        this.price = price;
        this.markPrice = markPrice;
        this.title = title;
        this.introduce = introduce;
        this.content = content;
        this.type = type;
        this.cent = cent;
    }

    public Business(int id, String img, double price, double markPrice, String title, String introduce, String content, String type) {
        this.id = id;
        this.img = img;
        this.price = price;
        this.markPrice = markPrice;
        this.title = title;
        this.introduce = introduce;
        this.content = content;
        this.type = type;
    }

    public Business() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getMarkPrice() {
        return markPrice;
    }

    public void setMarkPrice(double markPrice) {
        this.markPrice = markPrice;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "BusinessDao{" +
                "id=" + id +
                ", img='" + img + '\'' +
                ", price=" + price +
                ", markPrice=" + markPrice +
                ", title='" + title + '\'' +
                ", introduce='" + introduce + '\'' +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
